package edu.nf.ch01.factory;

import edu.nf.ch01.service.UserService;
import edu.nf.ch01.service.impl.StudentServiceImpl;

/**
 * @author wangl
 * @date 2025/4/27
 * 自定义静态工厂
 */
public class StudentServiceFactory {
    /**
     * 让spring容器调用静态方法创建Bean
     * @return
     */
    public static UserService create(){
        return new StudentServiceImpl();
    }
}